import eventBush from '@/eventBush'
export default {
    data() {
        return {
            isCompanyMonitoringPoint:false,
        }
    },
    created() {

    },
    mounted() {
        eventBush.$on('onDisabledData',(obj)=>{
            this.isCompanyMonitoringPoint=!this.isCompanyMonitoringPoint
            eventBush.$emit('companyMonitoringPoint',{
                isShow:this.isCompanyMonitoringPoint,
                detail:{},
                monitorType:[]
            });
        });
    },
    methods: {
        setDataMonitoring(data,monitorType,isHide=true){
            this.isCompanyMonitoringPoint=!this.isCompanyMonitoringPoint
            console.log(this.isCompanyMonitoringPoint)
            eventBush.$emit('companyMonitoringPoint',{
                isShow:this.isCompanyMonitoringPoint,
                detail:data,
                monitorType:monitorType,
                isHide:isHide
            });
        },
    }
}
